package com.itheima.threadDemo.Demo12;

public class Box {
    private int bottle;
    private boolean flag = false;
    //往奶箱里面放牛奶
    public void put(int bottle){
        this.bottle = bottle;
        System.out.println("送奶人正在放第"+bottle+"杯奶");
    }
    public void take(){
        System.out.println("少爷正在喝第"+bottle+"杯奶");
    }

    public int getBottle() {
        return bottle;
    }

    public void setBottle(int bottle) {
        this.bottle = bottle;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }
}
